<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}index{% endblock %}</title>
</head>
<body>
	<div class="top">
    {% if request.user.id %}
		<ul>
			<li> <a href="#">欢迎</a>| {{ user.username }}</li>
			<li><a href='{% url 'article:logout' %}'>注销</a>|</li>
            <li><a href="{% url 'article:my_admin' %}">我的管理</a></li>
			<li><a href='{% url 'article:index'%}'>主页</a></li>
		</ul>
    {% else %}
		<ul>
			<li><a href="{% url 'article:login' %}">登录</a></li>
			<li><a href="{% url 'article:register' %}">注册</a></li>
            <li><a href="{% url 'article:index' %}">主页</a></li>
		</ul>
    {% endif %}
	</div>
</body>
</html>